"use server";

import { wrapAction } from "@/server/wrapper";
import postsService from "@/server/service/post/post-service";
import { PostSummary } from "@/shared/types";

export async function getRecommendedPosts() {
  return await wrapAction(async (): Promise<PostSummary[]> => {
    return await postsService.getRecommendedPosts();
  });
}
